import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/merchantRechargeActivity/list',
    method: 'get',
    params: query
  })
}

export function addRechargeActivity(query) {
  return request({
    url: '/merchantRechargeActivity/create',
    method: 'post',
    data: query
  })
}

export function getRechargeActivityDetail(id) {
  return request({
    url: `/merchantRechargeActivity/${id}`,
    method: 'get'
  })
}

export function editRechargeActivity(query) {
  return request({
    url: '/merchantRechargeActivity/update',
    method: 'post',
    data: query
  })
}

export function delRechargeActivity(id) {
  return request({
    url: `/merchantRechargeActivity/${id}`,
    method: 'delete'
  })
}
